<template>
    <div class="main">
        <el-container>
            <el-aside style="width: auto;">
                <Aside></Aside>
            </el-aside>
            
            <el-container>
                <el-header>
                    <Header></Header>
                </el-header>
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>

    </div>
</template>

<script>
import Aside from '../components/Aside.vue'
import Header from '../components/Header.vue'
export default {

    data() {
        return {

        };
    },

    mounted() {

    },

    methods: {

    },
    components:{
        Aside,
        Header
    }
};
</script>

<style  scoped>
.main,
.el-container {
    height: 100%;
}
.el-header,
.el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
}

.el-aside {
    background-color: #D3DCE6;
    color: #333;
    overflow: visible;
}


.el-main {
    background-color: #E9EEF3;
    color: #333;
}

body>.el-container {
    margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
    line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
    line-height: 320px;
}
</style>